<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script>
   var arr = [65,89,66,99,56,67,76,12,21,100];
   var sum = 0;
   for (var i = 0 ; i <= arr.length-1 ; i++) {
			sum += arr[i];
    }
    var average = sum / arr.length;
    var count = 0;
    for (var i = 0 ; i <= arr.length-1 ; i++) {
			// 判断是否大于平均值，大于等于就给count加1
			if(arr[i] >= average){
				count++;
			}
		}
		// 输出最终结果
		console.log("大于等于平均成绩" + average + "的人数有" + count);
  </script>
</head>
<body>
  
</body>
</html>